import request from '@/utils/request'

// 列表
export const announceQuery = (params) => {
  return request({
    url: '/sys/announce/query',
    method: 'get',
    params
  })
}

// 新增
export const announceAdd = (data) => {
  return request({
    url: '/sys/announce/add',
    method: 'post',
    data
  })
}

// 编辑
export const announceUpdate = (data) => {
  return request({
    url: '/sys/announce/update',
    method: 'post',
    data
  })
}

// 删除
export const announceDel = (id) => {
  return request({
    url: `/sys/announce/${id}`,
    method: 'post'
  })
}




export function getAllInfo(query) {
  return request({
    url: '/syslog/page',
    method: 'get',
    params: query
  })
}
export function faceerror(query) {
  return request({
    url: '/syserpinterfaceerror/page',
    method: 'get',
    params: query
  })
}
